
<?php echo form_open('khach_hang/sua_thong_tin/'.$data->id, array('id' => 'register')); ?>
<div id="content">
    <?php if ($this->session->flashdata('warning')): ?>
        <div class="affiche_erreur">
            <?php echo $this->session->flashdata('warning'); ?>
        </div>
    <?php endif; ?>
    <div id="title_content">Sửa thông tin</div>
    <?php echo form_open_multipart('khach_hang/sua_thong_tin/'.$data->id); ?>
    <table class="form_content" width="100%">
        <tr>
            <td>Họ tên </td>
            <td>
                <?php if (form_error('ho_ten') != "") {
                    ?> <div class="form_error"><?php echo generate_pure_text(form_error('ho_ten'), '<p>', '</p>'); ?></div> <?php } ?>
                <input type="text" class="form_input" name="ho_ten" size="35" maxlength="40" value="<?php echo set_value('ho_ten', $data->ten_khach_hang); ?>" /></td>
        </tr>

        <tr>
            <td>Tên công ty </td>
            <td>
                <?php if (form_error('ten_cong_ty') != "") {
                    ?> <div class="form_error"><?php echo generate_pure_text(form_error('ten_cong_ty'), '<p>', '</p>'); ?></div> <?php } ?>
                <input type="text" class="form_input" name="ten_cong_ty" size="35" maxlength="40" value="<?php echo set_value('ten_cong_ty', $data->ten_cong_ty); ?>" /></td>
        </tr>

        <tr>
            <td>Email </td>
            <td>
                <?php if (form_error('email') != "") {
                    ?> <div class="form_error"><?php echo generate_pure_text(form_error('email'), '<p>', '</p>'); ?></div> <?php } ?>
                <input type="text" class="form_input" name="email" size="35" maxlength="40" value="<?php echo set_value('email', $data->email); ?>" /></td>
        </tr>

        <tr>
            <td>Điện thoại </td>
            <td>
                <?php if (form_error('dien_thoai') != "") {
                    ?> <div class="form_error"><?php echo generate_pure_text(form_error('dien_thoai'), '<p>', '</p>'); ?></div> <?php } ?>
                <input type="text" class="form_input" name="dien_thoai" size="35" maxlength="40" value="<?php echo set_value('dien_thoai', $data->dien_thoai); ?>" /></td>
        </tr>

        <tr>
            <td>Địa chỉ </td>
            <td>
                <?php if (form_error('dia_chi') != "") {
                    ?> <div class="form_error"><?php echo generate_pure_text(form_error('dia_chi'), '<p>', '</p>'); ?></div> <?php } ?>
                <input type="text" class="form_input" name="dia_chi" size="35" maxlength="40" value="<?php echo set_value('dia_chi', $data->dia_chi); ?>" /></td>
        </tr>

        <tr>
            <td>Yêu cầu </td>
            <td>
                <?php if (form_error('yeu_cau') != "") { ?> <div class="form_error"><?php echo generate_pure_text(form_error('yeu_cau'), '<p>', '</p>'); ?></div> <?php } ?>
                <?php
                $data = array(
                    'name' => 'yeu_cau',
                    'id' => 'yeu_cau',
                    'height' => 400,
                    'width' => 610,
                    'value' => html_entity_decode(set_value('yeu_cau', $data->yeu_cau)),
                    'type' => 'text'
                );
                echo form_fckeditor($data);
                ?>
            </td>
        </tr>

        <tr>
            <td colspan="2"><input type="submit" name="submit" value="Cập nhật" class="form_submit" /></td>
        </tr>
    </table>
    <?php echo form_close(); ?>
</div>